import request from '@/utils/request'
// 获取验证码
export function getCodeImg() {
    return request({
        url: '/api/v1/captcha',
        method: 'get'
    })
}
//登入接口
export function login(data) {
    return request({
        url: '/virtual/v1/login',
        method: 'post',
        data
    })
}
//获取用户信息
export function getInfo(token) {
    return request({
        url: '/api/v1/user/profile',
        method: 'get',
        // params: { token }
    })
}
//获取菜单
export function menu(data) {
    return request({
      url: '/api//v1/menurole',
      method: 'post',
      data
    })
  }